package com.taobao.ued.toy.service;


import com.taobao.ued.toy.domain.Designer;
import com.taobao.ued.toy.domain.FollowRelation;
import com.taobao.ued.toy.domain.Pic;
import com.taobao.ued.toy.domain.Work;

import java.util.List;


public interface ToyManager {

	public void addPic(Pic p) throws Exception;

	public List<Pic> getPicsByWork(int id) throws Exception;

	public List<Work> getWorksByDesigner(String id, int start, int end) throws Exception;

	public List<Work> getCoverWorksByDesigner(String designerId);

	public int getWorksByDesignerCount(String designerId);

	public int addWork(Work w) throws Exception;

	public void updateDesigner(Designer d) throws Exception;

	public void addDesigner(Designer d) throws Exception;

	public Designer getDesigner(String id) throws Exception;

	public Designer getDesignerByDomain(String domain) throws Exception;

	public List<Designer> getFollowers(String followingId, int start, int end) throws Exception;

	public List<Designer> getFollowings(String designerId, int start, int end) throws Exception;

	public int getFollowersCount(String followingId) throws Exception;

	public int getNotAckFollowersCount(String followingId) throws Exception;

	public int getFollowingsCount(String designerId) throws Exception;

	public void addFollowRelation(FollowRelation d) throws Exception;

	public void deleteFollowRelation(FollowRelation d) throws Exception;

	public void acknowledgement(FollowRelation d) throws Exception;

	public List<Designer> getNotAckFollowers(String followingId, int start, int end) throws Exception;


}
